More reliable way of detecting player movements