fixed my badness

game no longer locks up for mystery reasons
fixed duplicate variable definition in surface manager