added number guessing, fixed check php