added collsion detection
see runNextFrame in Game class for usage