Fixed E_NOTICE error on player movement