Fixed bug in computer's logic