public void onKeyPress(Key key){ boolean check = canUserMove(); if (check == false){ gameOver(); }