Make some refactoring.
Add board bounderies for player-move and rotate.