Filling out some gameplay functions.