continuing to work on project...
moving key handlers into step function
isOffEdge function