fixed some game bugs