This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
With the given code- really difficult to tell the reason for the Nullpointer Exception. But either board is NULL or board.getPocketArray(0, 0) is null. You would have to check that. Also check if the instances being referred in the if condition of the legalMove method are not null.