fixed problem with jumping to rook routine in entry error. fixed by adding if(error==0) condition for each piece function call in play