revamped code, made new java file Pong.java