refactoring zombie and player (not finished)