removed unused files
implemented basic endgame logic
solved the end game slow down