Impementation of slightly modified assignment from AIMA in C# XNA