added entitystate struct
entity now has state that is updated each step