added game over
fixed compiler errors
add checks to prevent out of bounds problems as well as game over code for for when the user hits the edge