Refactoring shake to only move the screen once each frame.