red square
game loop support with swapping render and update functions whilst running