Updating some functions on Pong.cpp