Factor out the player update/draw to player.lua