first working version - player vs. computer