Determine the maximum value of $a^2+b^2$, where $a$ and $b$ are integers in the range $1,\,2,\,\cdots,\,1981$ satisfying $(a^2-ab-b^2)^2=1$.