refactor enemy and player to be entitites