move layer speed to game layer class