foundation for both games working