move window onload function to its own file
successful endgame test