Implemented collision detection and moved level logic to level.java