Added engine.cpp/.h for implementation of the game logic
Added error checking around the playing field memory allocation