Trying to learn to program games