Function for recording bot steps is implemented
#1 Bugs on isTaken fixed #2 Created two functions for isTaken. isTakenBeforeMoved: find if the piece will be captured before bot makes a move. isTakenAfterMoved: find if the piece will be captured after the bot makes a move.