refactor some player stuff into actor so that it can be used on the enemies