adding some logic to the moves

changing the logic about check ,  moveing the figures back to the
players , with the king as a special one