develop game full logic