move Surface class into utils module. Implement prev_weapon function.