basic gameplay done, works in cocoonjs