Game loop made inside board class