java game in sinatra somewhat working