The beginning of Game related functions