2D game written in c