game logic rendering checking with flask