some game functions + move to app folder