remove unused code
extract stages in game