added keyboard events from graphics interface to control while testing the application, also improved performance in some functions and changed score to only output the given score and no zeros before it