bug fixes with alert views, add end game functionality