correctly logic for displaying games page