Moved statemachine from Players to fieldplayers and goalkeepers class