finishes core game fucntions