fixed some bugs/added buttons

i fixed the random generation and added some button stuff