refactor to Unit class + player can attack