Completing game logoc, Adding flicker api