Create gamelooppractice.cpp

Amalgamation of what I've learned so far.