Fixed player collision bug

Now only checks collision once before moving, instead of checking every
time it moves a pixel.