added unused squares function and random spot choice for computer