Moved gameplay code to static library.