castling; updated the move() function to replace the parameters from jquery selectors to simple ids