fixed some stuff that broke the game