corrected logic mistake: when figures go outside the board or try to step over another figure the correct message is printed