A small game core

Starting from gravinoid demo I'm built a game core, for further improvements.