Added all functionality for a basic gameplay