Game logic Implemented

Complete game logic over.