fixed updatePlayer and updateStation functions