moved camera movement code out of graphics engine