Made collisions with objects possible even when player is not moving to support future functionality.