Fix playerX calculation