Refactoring

(1) Change static main to be the same as provided by the lecturer
(2) Delete play with space key so that can compile with the original
state, and tframe