added SpacePressEater.cpp, refactored the code a bit