Fixed bug that was setting player's pos to NaN in certain circumstances