a javafx game for my object oriented class