wait one second before making computer move
updated after running jshint