improvements to the accelerometer listener and sprite on screen functions