Fix out of bounds error and add collision with guards

Fix out of bounds error. Player can no longer move outside of the
bounds of the map. Game over will now occur when player collides
with guards.