implemented entity system and added existing player class to system