updated alg. still not sure if it's really optimizing. start of game filtering
ui for game selection and backend correct. error in alg for optimization though