wrote game mechanics