refactor of entities
Refactoring input handling
Tests and rotation of buttons