fixed wall glitch bug; moved selection stuff to the correct game state