A simple PHP game engine