move game mechanics logic to new Controller.java