A Swift visual experiment for calculating player and background scrolling