added bounds to player\'s movement