added basic state system, levels and a player