Game files committed with bounds to keep the player on the board. It took a while to figure out this commit so more code may be modified as well.
game.c updated with comments and finalized code.